package com.inforich.app.api.service;

import com.inforich.app.api.dto.BookingAllocationDTO;
import com.inforich.app.api.dto.BookingDTO;
import com.inforich.app.api.vo.BookingVO;
import com.inforich.app.component.LoginUserApp;
import com.inforich.common.core.domain.AjaxResult;

/**
 * @description: 预约单service
 * @author: HJM
 * @date: 2022/10/31
 */
public interface IAppBookingService {

  BookingVO getInfo(String id);

  /**
   * 新增预约
   */
  AjaxResult addBooking(LoginUserApp loginUserApp, BookingDTO bookingDTO);

  /**
   * 为预约单分配车辆
   */
  AjaxResult allocationBooking(LoginUserApp loginUserApp,
      BookingAllocationDTO dto);

  /**
   * [司机]我的预约单信息
   */
  BookingVO queryMyBookingInfo(LoginUserApp loginUserApp, String bookingId);
}
